<?php

// [ 项目估值 ]

namespace app\mobile\controller;
use app\mobile\controller\Base;
use think\Session;

class Project extends Base
{
    protected $beforeActionList = [
        'check',
    ];

    protected function check()
    {
        1 == Session::get('member.role') || $this->redirect('@error/forbidden');
    }

    // 我的项目
    // http://jzl.51dojob.com/mobile/project/me
    public function me()
    {
        return $this->fetch();
    }

    // 创建项目
    // http://jzl.51dojob.com/mobile/project/create
    public function create()
    {
        return $this->fetch();
    }

    // 项目评估
    // http://jzl.51dojob.com/mobile/project/review
    public function review()
    {
        return $this->fetch();
    }

    // 高级评估
    // http://jzl.51dojob.com/mobile/project/assess
    public function assess()
    {
        return $this->fetch();
    }
}
